package com.moli.iov.down.command.mq.kafka.handle;

import com.moli.iov.down.remote.IVehicleParamRemoteService;
import java.util.ArrayList;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * <p>
 *  终端登陆
 *      调用参数查询
 * </p>
 *
 * @author: zql
 * @Date: 2019/5/7 14:39
 */
@Slf4j
@Component
public class IovLoginHandler {

    @Autowired
    private IVehicleParamRemoteService vehicleParamRemoteService;

    /**
     * 终端登陆 调用参数查询命令
     * @param vin
     */
    @Async
    public void responseHandle(String vin){
        log.info("终端登陆 调用参数查询命令 vin：{}", vin);
        List<String> vins = new ArrayList<>();
        vins.add(vin);
        vehicleParamRemoteService.sendQueryParameterCommand(vins);
    }
}
